package usb;
import java.util.Scanner;

public class Test03 {
    public static void main(String[] args) {
        Scanner scanner=new Scanner(System.in);
        System.out.println("请输入java成绩：");
        int java=scanner.nextInt();
        System.out.println("请输入算法：");
        String symbol=scanner.next();
        System.out.println("请输入html成绩：");
        int html=scanner.nextInt();
        int sum = 0;
        if (symbol.equals("+")){
            sum=java+html;
        }else if (symbol.equals("-")){
            sum=java-html;
        }else if (symbol.equals("*")){
            sum=java*html;
        }else if (symbol.equals("/")){
            sum=java/html;
        }
        System.out.println(sum);
        if (sum>=170) {
            System.out.println("恭喜你，通过考试");
        }else {
            System.out.println("请重新考试");
        }
    }
}
